﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>ac</Title>
			<Shortcut>ac</Shortcut>
			<Description>生成AutoCAD的命令</Description>
			<Author>AutoCADDotNetLibrary</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Imports>
				<Import>
					<Namespace>Autodesk.AutoCAD.ApplicationServices</Namespace>
				</Import>
				<Import>
					<Namespace>Autodesk.AutoCAD.DatabaseServices</Namespace>
				</Import>
				<Import>
					<Namespace>Autodesk.AutoCAD.Runtime</Namespace>
				</Import>
			</Imports>
			<Declarations>
				<Literal Editable="true">
					<ID>command</ID>
					<ToolTip>AutoCAD命令</ToolTip>
					<Default>command</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp">
				<![CDATA[[CommandMethod("$command$")]
					     public void $command$()
					     {
					         Document doc = Application.DocumentManager.MdiActiveDocument;
					         using (Transaction trans = doc.TransactionManager.StartTransaction())
					         {
					     
					     
					             trans.Commit();
					         }
					     }]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>
